#include "modes.h"
#include "sm4.h"

void sm4_ctr128_encrypt(const unsigned char* in, unsigned char* out, size_t len,
                        const sm4_key_t* key, unsigned char* iv,
                        unsigned char ecount_buf[SM4_BLOCK_SIZE],
                        unsigned int* num)
{
    CRYPTO_ctr128_encrypt(in, out, len, key, iv, ecount_buf, num,
                          (block128_f)sm4_encrypt);
}
